package com.mxd.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 新闻表
 * </p>
 *
 * @author mxd
 * @since 2018-09-04
 */
public class News extends Model<News> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发布人
     */
    @ApiModelProperty(value="发布人")
    private String publisher;

    /**
     * 新闻类型ID
     */
    @ApiModelProperty(value="新闻类型ID")
    @TableField("newsTypeId")
    private Long newsTypeId;

    /**
     * 标题
     */
    @ApiModelProperty(value="标题")
    private String title;

    /**
     * 作者
     */
    @ApiModelProperty(value="作者")
    private String author;

    /**
     * 关键字
     */
    @ApiModelProperty(value="关键字")
    private String keywords;

    /**
     * 来源
     */
    @ApiModelProperty(value="来源")
    private String source;

    /**
     * 内容
     */
    @ApiModelProperty(value="内容")
    private String content;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    @TableField("createTime")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    @TableField("updateTime")
    private String updateTime;

    /**
     * 点击次数
     */
    @ApiModelProperty(value="点击次数")
    @TableField("clickTimes")
    private Integer clickTimes;

    /**
     * 审核状态：0待审核；1已发布；2已废除
     */
    @ApiModelProperty(value="审核状态：0待审核；1已发布；2已废除")
    private Integer state;

    /**
     * 状态：0未删除1已删除
     */
    @ApiModelProperty(value="状态：0未删除1已删除")
    private Integer status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }
    public Long getNewsTypeId() {
        return newsTypeId;
    }

    public void setNewsTypeId(Long newsTypeId) {
        this.newsTypeId = newsTypeId;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getClickTimes() {
        return clickTimes;
    }

    public void setClickTimes(Integer clickTimes) {
        this.clickTimes = clickTimes;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "News{" +
        "id=" + id +
        ", publisher=" + publisher +
        ", newsTypeId=" + newsTypeId +
        ", title=" + title +
        ", author=" + author +
        ", keywords=" + keywords +
        ", source=" + source +
        ", content=" + content +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", clickTimes=" + clickTimes +
        ", state=" + state +
        ", status=" + status +
        "}";
    }
}
